package SewerAgent;

import jade.content.lang.Codec;
import jade.content.lang.sl.SLCodec;
import jade.content.onto.Ontology;
import jade.core.Agent;
import wwtp.ontology.WWTPAmazingOntology;
import DataBases.DBDirectWater;

public class SewerAgent extends Agent{
	
	protected Codec codec = new SLCodec();
	protected Ontology ontology = WWTPAmazingOntology.getInstance();
	
	DBDirectWater dbDirectWater;
	
	boolean mildthunderstorm;
	
	protected void setup(){
		
		getContentManager().registerLanguage(codec);
		getContentManager().registerOntology(ontology);
		
		dbDirectWater = DBDirectWater.getInstance();
		
		mildthunderstorm = false;
		
		addBehaviour(new DrainageBehaviour(this,3000));
		System.out.println("Agent created with name: "+getAID().getName());
	}

	@Override
	protected void takeDown() {
		System.out.println("======================> ERASING: "+getAID().getName());
	}
}
